import request from '@/utils/request'

// 查询帮助文档列表
export function listHelper(query) {
  return request({
    url: '/member/helper/list',
    method: 'get',
    params: query
  })
}

// 查询帮助文档详细
export function getHelper(updateTime) {
  return request({
    url: '/member/helper/' + updateTime,
    method: 'get'
  })
}

// 新增帮助文档
export function addHelper(data) {
  return request({
    url: '/member/helper',
    method: 'post',
    data: data
  })
}

// 修改帮助文档
export function updateHelper(data) {
  return request({
    url: '/member/helper',
    method: 'put',
    data: data
  })
}

// 删除帮助文档
export function delHelper(updateTime) {
  return request({
    url: '/member/helper/' + updateTime,
    method: 'delete'
  })
}

// 导出帮助文档
export function exportHelper(query) {
  return request({
    url: '/member/helper/export',
    method: 'get',
    params: query
  })
}